<%- posting ||= posting_row -%>
<div id="<%= dom_id(posting, dom_id(@bundle)) %>" class="posting span-16">
  <div class="posting_container span-16">
    <div class="span-13 <%= posting.credit_grade.downcase %>">
      <div class="posting_title span-13">
        <%= posting.title %>
      </div>
    
      <div class="credit_grade">
        <span><%= posting.credit_grade %></span>
        <div class="credit_label caps">credit</div>
      </div>
    
      <div class="span-10 last loan_details">
        <div class="span-5">
          <span class="amount-requested">$<%= posting.amount_requested %></span>
          <span class="at">@</span>
          <span class="borrower-rate"><%= percentage(posting.borrower_rate) %></span>
        </div>
      
        <div class="span-4 last funding">
          <span class="time-left"><%= distance_of_time_in_words_to_now(posting.time_left) %> left</span>
          /
          <%- link_to prosper_listing_url(posting) do -%>
          <span class="bid-count"><%= pluralize posting.bid_count, 'bid', 'bids' %></span>
          <%- end -%>
        </div>
      </div>
    
      <div class="span-10 last credibility">
        <div class="span-5">
          <span class="homeowner"><%= homeowner_image(posting.is_borrower_homeowner) %></span>
          <span class="debt-to-income-ratio"><%= percentage(posting.debt_to_income_ratio) %> debt/income</span>
        </div>
      
        <div class="span-4 last funding">
          <%= funding_bar_for(posting) %>
          <span class="percentage"><%= percentage(posting.percent_funded) %> funded</span>
        </div>
      </div>
    </div>
  
    <div class="span-3 last">
      <%= image_tag(prosper_image_url(posting), :class => "posting_image", :alt => "") %>
    </div>
  </div>
</div>  
<%#= prettier_date(posting.created_at) %> <%#= prettier_time(posting.created_at) %>
